package com.sichem.domain.trade.adapter.repository;

import com.sichem.domain.trade.model.aggregate.GroupBuyOrderAggregate;
import com.sichem.domain.trade.model.entity.MarketPayOrderEntity;
import com.sichem.domain.trade.model.valobj.GroupBuyProgressVO;

/**
 * @Author xiangshizhen
 * @Date 2025/3/12
 */
public interface ITradeRepository {


    MarketPayOrderEntity queryNoPayMarketBuyOrderByOutTradeNo(String userId, String outTradeNo);

    GroupBuyProgressVO queryGroupBuyProgress(String teamId);

    MarketPayOrderEntity lockMarketPayOrder(GroupBuyOrderAggregate groupBuyOrderAggregate);

}
